package com.iwomy.secureplat.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iwomy.secureplat.platform.entity.AlarmDeviceRulesEntity;
import com.iwomy.secureplat.platform.entity.BasicDeviceEntity;

import java.util.List;

public interface AlarmDeviceRulesService extends IService<AlarmDeviceRulesEntity> {

	/**
	 * 添加设备报警规则，统一入口
	 * @param rulesId  规则 id
	 * @param deviceList
	 */
	void  addDeviceRulesByRules(Long rulesId, List<BasicDeviceEntity> deviceList);


	void  addDeviceRulesByDevice(List<BasicDeviceEntity> deviceList, List<Long> rulesIds);

}